package gof.com.yew.mediator;

//财务部门
public class Financial implements Department{
	//中介者引用
	private Mediator m;

	public Financial(Mediator t) {
		this.m = t;
		m.register("002", this);
	}

	@Override
	public void selfAction() {
		System.out.println("002负责拨款");
	}

	@Override
	public void outAction(String dname) {
		System.out.println(dname+"收款确认");
		m.command(dname);
	}

}
